{include file="tinymce_full_tpl.html"}
{if $smarty.get.action=="editcat"}
	{catalogue action="GETCATALOG" id="$id" varname="cat"}
<form action="index.php?module=catalogue&action=editcat&fixact=1&id={$id}" method="post">
{elseif $smarty.get.action=="addcat"}
<form action="index.php?module=catalogue&action=addcat&fixact=1&id={$id}" method="post">
{/if}
<fieldset class="groupbox">
    <legend>Подкаталог</legend>
    <label>Название<br /></label><input type="text" name="dir_name" size="30" maxlength="255" value="{$cat.dir_name}"><br>
    <label>Путь<br /></label><input type="text" name="link" size="30" maxlength="255" value="{$cat.link}"><br>
	<label>Описание<br /></label><textarea cols="95" rows="30" name="description">{$cat.description}</textarea><br>
	<label>Картинка</label><input type="text" name="picture" size="30" maxlength="255" value="{$cat.picture}"><br>
	<label>Публиковать</label><input type="checkbox" name="publish" size="30" maxlength="255" {if $cat.publish eq '1'}checked="true"{/if} value="1"><br><br>
	<input type="submit" value="Сохранить изменения" class="btn" checked>
</fieldset>